package com.yswy.backstage.dto.filter;


import com.yswy.domain.vo.dto.BaseFilter;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotNull;

/**
 * @author 19401
 * @date 2022/9/8 10:26
 **/
@Data
@EqualsAndHashCode(callSuper = false)
public class AppUserMoneyPageFilter extends BaseFilter {
    /** 关键字查询 */
    @ApiModelProperty("关键字查询")
    private String keyWord;
    public String getKeyWord() {
        return StringUtils.isNotEmpty(keyWord) ? keyWord.trim() : keyWord;
    }
    /**
     * 用户ID
     */
    @ApiModelProperty("用户Id")
    @NotNull(message = "用户Id不能为空")
    private Long userId;
}
